<?php

/**
 * Project:     Securimage: A PHP class for creating and managing form CAPTCHA images<br />
 * File:        securimage.php<br />
 *
 * @version 2.0.1 BETA (December 6th, 2009)
 * @package Securimage
 * @subpackage Controller
 *
 */
class Captcha extends Controller {

    function Captcha() {
        parent::Controller();
    }

    function index() {
        echo "what do you want?";
    }

    /**
     * Show Image create form captcha
     */
    function show() {
        $this->load->library('securimage');
        $this->load->library('session');
//        $this->securimage->image_width = 275;
//        $this->securimage->image_height = 90;
        $this->securimage->perturbation = 0.9; // 1.0 = high distortion, higher numbers = more distortion
        $this->securimage->image_bg_color = new Securimage_Color("#0099CC");
        $this->securimage->text_color = new Securimage_Color("#EAEAEA");
        $this->securimage->text_transparency_percentage = 65; // 100 = completely transparent
//        $this->securimage->num_lines = 8;
        $this->securimage->line_color = new Securimage_Color("#0000CC");
        $this->securimage->signature_color = new Securimage_Color(rand(0, 64), rand(64, 128), rand(128, 255));
        $this->securimage->image_type = SI_IMAGE_PNG;
        $this->securimage->show();
    }

}

?>